package com.dfxs.sqlSession;

import com.dfxs.pojo.Configuration;

/**
 * @author zhangdongsheng
 * @version 1.0
 * @describe
 * @date 2020/9/26 8:49
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
